<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<button onclick="doAjaxGet()">get</button>

<span id="result"></span>



<script src="axios.min.js"></script>
<script>
    function doAjaxGet(){
        debugger;
        var url="http://localhost:8080/findAll";
        axios.get(url).
            then(function (res){
                document.getElementById("result").innerHTML=res.data;
        }).
            catch();
    }
</script>
</body>

</html>